package org.jeecg.modules.jindie.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.jeecg.modules.jindie.mapper.TBdStaffMapper;
import org.jeecg.modules.jindie.entity.StaffEntity;
import org.jeecg.modules.jindie.service.TBdStaffService;

import java.util.List;


@Service("tBdStaffService")
@DS("jindie")
public class TBdStaffServiceImpl extends ServiceImpl<TBdStaffMapper, StaffEntity> implements TBdStaffService {

    @Override
    public IPage<StaffEntity> page2(Page<StaffEntity> page, QueryWrapper<StaffEntity> queryWrapper) {
        return baseMapper.page2(page, queryWrapper);
    }

    @Override
    public StaffEntity getById2(String id) {
        return baseMapper.selectById2(id);
    }

    @Override
    public List<StaffEntity> list2(QueryWrapper<StaffEntity> queryWrapper) {
        return baseMapper.list2(queryWrapper);
    }

}